package defectsim.resources.deformation;

import javax.vecmath.Vector2d;

import repast.simphony.parameter.Parameters;

import defectsim.SimulationEnvironment;

public class ConstantStress implements Deformation{

	private SimulationEnvironment environment = SimulationEnvironment.getInstance();
	
	private Vector2d externalStress;
	
	public ConstantStress(){
		Parameters p = environment.getParameters();
		double mxs = (Double)p.getValue("externalstress");
		this.externalStress = new Vector2d(mxs, 0);
	}
	
	@Override
	public Vector2d updateExternalStress() {
		return this.externalStress;
	}
	
	@Override
	public double getCycle() {
		// TODO Auto-generated method stub
		return 0;
	}



}
